import away3d.core.base.*;
import away3d.modifiers.*;

import com.powerfl.frm.taf.*;

final public function vertexHeightMap( $tree:String, $map:String, $channelRGBAV:String = 'r', $scale:Number = 1, $offset:Number = 0 ):void{
	orderAdd( null, vertex_HeightMap, $tree, $map, $channelRGBAV, $scale, $offset );
}
final public function vertex_HeightMap( $tree:String, $map:String, $channelRGBAV:String = 'r', $scale:Number = 1, $offset:Number = 0 ):void{
	var temp:HeightMapModifier;
	temp = poolPullHeightMapModifier( tdata( $tree ), tdata( $map ), awayChannelGet( $channelRGBAV ), 255, $scale, $offset );
	temp.execute();
	poolCollectHeightMapModifier( temp );
}